<?php

namespace mbilling\BillingBundle\Form;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilder;

class UsersRegistrationForm extends AbstractType
{
    public function buildForm(FormBuilder $builder, array $options)
    {
        $builder->add('login', 'text');
        $builder->add('password', 'password');
        $builder->add('password_confirm', 'password');
        $builder->add('status_id', 'choice', array('choices' => array(1 => 'администратор', 2 => 'пользователь')));
    }
    /*public function getDefaultOptions(array $options)
    {
        return array(
            'data_class'      => 'mbilling\BillingBundle\Entity\users',
            'csrf_protection' => true,
            'csrf_field_name' => '_token',
            'intention'  => 'user_creation',
        );
    }*/
}